<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php 
/**
 * Store switcher template
 *
 * @see Mage_Core_Block_Store_Switcher
 */
?>
<?php
	$setting = Mage::helper('wishcartsettings');
	$check = $setting->getGeneral_DisableFrontendVariation();
    $maxItem = 3;
 ?>
<?php if($check != 1) : ?>
	<?php if(count($this->getGroups())>1): ?>
	<div class="store_switcher_variation hide-lte0">
		<a href="javascript:void(0)" class="btn_storeview"><?php echo $this->__("Store view") ?></a>
		<div class="storediv" style="display:none">
			<a href="javascript:void(0)" class="btn_storeclose"><?php echo $this->__("Close") ?></a>
			<div class="store_content">
				<div id="slider_storeview" class="slider_container">
					<ul class="slider-store slides">
					<?php foreach ($this->getGroups() as $_group): ?>
						<?php 
							$name	=	strtolower($this->escapeHtml($_group->getName()));
							$name	=	str_replace(" ","_",trim($name));
						?>
						<li style="width:280px;height:490px;" class="item slider itemslider">
							<a href="<?php echo $_group->getHomeUrl()  ?>" title="<?php echo $this->escapeHtml($_group->getName()) ?>">
								<img src="<?php echo $this->getSkinUrl('images/storeview/'.$name.'.jpg'); ?>" alt="<?php echo $this->escapeHtml($_group->getName()) ?>" />
							</a>
						</li>
					<?php endforeach; ?>
					</ul>
				</div>
				<script type="text/javascript">
					jQuery(window).load(function() {
						jQuery('#slider_storeview').csslider({
							move : 1,
							circular : 1,
							parentHidden : '.storediv',
							direction : 'horizontal'
						});
					});
				</script>
			</div>
		</div>   
	</div>
	<?php endif; ?>
<?php endif; ?>